package org.csu.mypetstore.domain;

import java.util.Calendar;

public class Journal {




   private String username = "aa";

    Calendar cal=Calendar.getInstance();
    int y=cal.get(Calendar.YEAR);
    int m=cal.get(Calendar.MONTH);
    int d=cal.get(Calendar.DATE);
    int h=cal.get(Calendar.HOUR_OF_DAY);
    int mi=cal.get(Calendar.MINUTE);
    int s=cal.get(Calendar.SECOND);
    String time = String.valueOf(y)+"-"+String.valueOf(m+1)+"-"+String.valueOf(d)+"-"+String.valueOf(h)+"-"+
            String.valueOf(mi)+"-"+ String.valueOf(s);
    private  String action = "";

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Calendar getCal() {
        return cal;
    }

    public void setCal(Calendar cal) {
        this.cal = cal;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getM() {
        return m;
    }

    public void setM(int m) {
        this.m = m;
    }

    public int getD() {
        return d;
    }

    public void setD(int d) {
        this.d = d;
    }

    public int getH() {
        return h;
    }

    public void setH(int h) {
        this.h = h;
    }

    public int getMi() {
        return mi;
    }

    public void setMi(int mi) {
        this.mi = mi;
    }

    public int getS() {
        return s;
    }

    public void setS(int s) {
        this.s = s;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    }


